﻿using QRCodeBluetooth.Helper;
using QRCodeBluetooth.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace QRCodeBluetooth.DAL
{
    public class HomeDAL
    {
        public UserInfo GetUser(string LoginName, string LoginPwd)
        {
            string strSql = "SELECT * FROM userinfo WHERE BINARY LoginId='" + LoginName + "' AND BINARY PassWord='" + LoginPwd + "'";

            return SqlHelper<UserInfo>.SqlSingleData(strSql);
        }
    }
}
